<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>JSS - Test</title>
		<script src="jss.js" type="text/javascript"></script>
		<script>
		window.onload = function() {
			JSS.init();
			JSS.set("test", [1,2,3,"asd"], function() {});
		};
		</script>
	</head>
	<body>
		<fieldset>
		<legend>Set</legend>
		Name: <input value="name" id="setter_name" type="text" /><br />
		Value: <input value="value" id="setter_value" type="text" /><br />
		<input type="button" value="set" onclick="JSS.set(document.getElementById('setter_name').value, document.getElementById('setter_value').value, function() { alert('set!'); })" />
		</fieldset>
		<fieldset>
		<legend>Get</legend>
		Name: <input value="name" id="getter_name" type="text" /><br />
		<input type="button" value="get" onclick="JSS.get(document.getElementById('getter_name').value, function(response) { alert(response); })" />
		</fieldset>
		<fieldset>
		<legend>Remove</legend>
		Name: <input value="name" id="remover_name" type="text" /><br />
		<input type="button" value="remove" onclick="JSS.remove(document.getElementById('remover_name').value, function() { alert('removed!'); })" />
		</fieldset>
		<fieldset>
		<legend>Clear</legend>
		<input type="button" value="clear" onclick="JSS.clear(function() { alert('cleared'); })" />
		</fieldset>
	</body>
</html>
